package com.huyi.common.result.enums;

/**
 * 处理结果枚举类
 * 
 * @author husl
 *
 */
public enum ResultEnum {

	// 异常处理
	UNKONW_ERROR(99, "系统异常"), BIZ_ERROR(1, "参数异常"), SUCCESS(0, "接口调用成功");

	private Integer code;
	private String msg;

	ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	ResultEnum(String msg) {
		this.code = 1;
		this.msg = msg;
	}

	public Integer getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

}
